/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦，本文采用木兰宽松许可证第2版]
 * 
 * https://zhiqim.org/project/zhiqim_kit/zhiqim_git.htm
 *
 * ZhiqimGit is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.git;

import org.zhiqim.git.constants.GitConfigConstants;
import org.zhiqim.git.constants.GitHttpConstants;
import org.zhiqim.git.constants.GitNameConstants;
import org.zhiqim.git.constants.GitObjectConstants;
import org.zhiqim.git.constants.GitOptionConstants;
import org.zhiqim.git.constants.GitStreamConstants;

import org.zhiqim.kernel.constants.CodeConstants;

/**
 * Git全部常量定义
 * 
 * @see GitNameConstants    名称定义
 * @see GitOptionConstants  参数定义
 * @see GitStreamConstants  流定义
 * @see GitHttpConstants    HTTP定义
 *
 * @version v1.0.0 @author zhichenggang 2014-3-21 新建与整理
 */
public interface GitConstants extends GitNameConstants, GitHttpConstants,
                                         GitOptionConstants, GitStreamConstants, 
                                         GitObjectConstants, GitConfigConstants,
                                         CodeConstants
{
    /** 版本 */
    public static final String ZHIQIM_GIT_VERSION               = "git/1.8.0.zhiqim_git.1.4.1";
    
    /** 对象编号字节长度&字符串长度 */
    public static final int LEN_OBJECT_ID                       = 20;
    public static final int LEN_OBJECT_ID_STRING                = 40;
    
    /** Git支持的最小客户端版本 */
    public static final String GIT_MIN_CLIENT_VERSION           = "git/1.8.0";
    public static final String GIT_ATTRIBUTE_REPOSITORY         = "git";
    public static final String GIT_ATTRIBUTE_OPERATOR           = "operator";
    
    /** 最大支持快捷方式的层次 */
    public static final int MAX_SYMBOLIC_REF_DEPTH              = 5;
    
    /** 包引用文件头（魔术字） */
    public static final String PACKED_REFS_HEADER               = "# pack-refs with:";

    /** 包引用文件是否已剥除标志 */
    public static final String PACKED_REFS_PEELED               = " peeled";
}
